package edu.sctu.xiangkun.day201505.day20150517;

import java.util.List;

/**
 * Created by user08 on 2015/5/17.
 */
public class MyMain {
    public static void main(String[] args) {

        TextOne textOne = new TextOne();
        textOne.getTercherInfo();
        textOne.getStudent(60);

        textOne.getCode(new MyInterface() {
            @Override
            public void getInfo(List<Student> student) {

                System.out.println("教授下成绩大于coed的学生:");

                for (int i = 0; i < student.size(); i++) {

                    if(Integer.parseInt(student.get(i).getScore()) >60){

                        System.out.println("学号："+student.get(i).getStudentID());
                        System.out.println("姓名："+student.get(i).getName());
                        System.out.println("成绩："+student.get(i).getScore());
                        System.out.println("性别："+student.get(i).getSex());
                        System.out.println("住址："+student.get(i).getAddress());
                        System.out.println();
                    }

                }

            }
        });
    }
}
